package com.ruoyi.oa.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 单据编号对象 oa_doc_num
 * 
 * @author ruoyi
 * @date 2021-11-12
 */
public class OaDocNum extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单据编号（全部单据统一编号） */
    private Long docNum;

    /** 前缀字符 */
    @Excel(name = "前缀字符")
    private String preCode;
    private Integer len;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 创建用户ID */
    @Excel(name = "创建用户ID")
    private Long createByUserId;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setDocNum(Long docNum) 
    {
        this.docNum = docNum;
    }

    public void setPreCode(String preCode)
    {
        this.preCode = preCode;
    }

    public String getPreCode() 
    {
        return preCode;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setCreateByUserId(Long createByUserId) 
    {
        this.createByUserId = createByUserId;
    }

    public Long getCreateByUserId() 
    {
        return createByUserId;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    public Integer getLen() {
        return len;
    }

    public void setLen(Integer len) {
        this.len = len;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("docNum", getDocNum())
            .append("preCode", getPreCode())
            .append("createAt", getCreateAt())
            .append("createByUserId", getCreateByUserId())
            .append("note", getNote())
            .toString();
    }
}
